package com.tjmc.tiomscore.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class RestPtnAlarmExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RestPtnAlarmExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTimeCreatedIsNull() {
            addCriterion("time_created is null");
            return (Criteria) this;
        }

        public Criteria andTimeCreatedIsNotNull() {
            addCriterion("time_created is not null");
            return (Criteria) this;
        }

        public Criteria andTimeCreatedEqualTo(Date value) {
            addCriterion("time_created =", value, "timeCreated");
            return (Criteria) this;
        }

        public Criteria andTimeCreatedNotEqualTo(Date value) {
            addCriterion("time_created <>", value, "timeCreated");
            return (Criteria) this;
        }

        public Criteria andTimeCreatedGreaterThan(Date value) {
            addCriterion("time_created >", value, "timeCreated");
            return (Criteria) this;
        }

        public Criteria andTimeCreatedGreaterThanOrEqualTo(Date value) {
            addCriterion("time_created >=", value, "timeCreated");
            return (Criteria) this;
        }

        public Criteria andTimeCreatedLessThan(Date value) {
            addCriterion("time_created <", value, "timeCreated");
            return (Criteria) this;
        }

        public Criteria andTimeCreatedLessThanOrEqualTo(Date value) {
            addCriterion("time_created <=", value, "timeCreated");
            return (Criteria) this;
        }

        public Criteria andTimeCreatedIn(List<Date> values) {
            addCriterion("time_created in", values, "timeCreated");
            return (Criteria) this;
        }

        public Criteria andTimeCreatedNotIn(List<Date> values) {
            addCriterion("time_created not in", values, "timeCreated");
            return (Criteria) this;
        }

        public Criteria andTimeCreatedBetween(Date value1, Date value2) {
            addCriterion("time_created between", value1, value2, "timeCreated");
            return (Criteria) this;
        }

        public Criteria andTimeCreatedNotBetween(Date value1, Date value2) {
            addCriterion("time_created not between", value1, value2, "timeCreated");
            return (Criteria) this;
        }

        public Criteria andIsAckedIsNull() {
            addCriterion("is_acked is null");
            return (Criteria) this;
        }

        public Criteria andIsAckedIsNotNull() {
            addCriterion("is_acked is not null");
            return (Criteria) this;
        }

        public Criteria andIsAckedEqualTo(Byte value) {
            addCriterion("is_acked =", value, "isAcked");
            return (Criteria) this;
        }

        public Criteria andIsAckedNotEqualTo(Byte value) {
            addCriterion("is_acked <>", value, "isAcked");
            return (Criteria) this;
        }

        public Criteria andIsAckedGreaterThan(Byte value) {
            addCriterion("is_acked >", value, "isAcked");
            return (Criteria) this;
        }

        public Criteria andIsAckedGreaterThanOrEqualTo(Byte value) {
            addCriterion("is_acked >=", value, "isAcked");
            return (Criteria) this;
        }

        public Criteria andIsAckedLessThan(Byte value) {
            addCriterion("is_acked <", value, "isAcked");
            return (Criteria) this;
        }

        public Criteria andIsAckedLessThanOrEqualTo(Byte value) {
            addCriterion("is_acked <=", value, "isAcked");
            return (Criteria) this;
        }

        public Criteria andIsAckedIn(List<Byte> values) {
            addCriterion("is_acked in", values, "isAcked");
            return (Criteria) this;
        }

        public Criteria andIsAckedNotIn(List<Byte> values) {
            addCriterion("is_acked not in", values, "isAcked");
            return (Criteria) this;
        }

        public Criteria andIsAckedBetween(Byte value1, Byte value2) {
            addCriterion("is_acked between", value1, value2, "isAcked");
            return (Criteria) this;
        }

        public Criteria andIsAckedNotBetween(Byte value1, Byte value2) {
            addCriterion("is_acked not between", value1, value2, "isAcked");
            return (Criteria) this;
        }

        public Criteria andPerceivedSeverityIsNull() {
            addCriterion("perceived_severity is null");
            return (Criteria) this;
        }

        public Criteria andPerceivedSeverityIsNotNull() {
            addCriterion("perceived_severity is not null");
            return (Criteria) this;
        }

        public Criteria andPerceivedSeverityEqualTo(String value) {
            addCriterion("perceived_severity =", value, "perceivedSeverity");
            return (Criteria) this;
        }

        public Criteria andPerceivedSeverityNotEqualTo(String value) {
            addCriterion("perceived_severity <>", value, "perceivedSeverity");
            return (Criteria) this;
        }

        public Criteria andPerceivedSeverityGreaterThan(String value) {
            addCriterion("perceived_severity >", value, "perceivedSeverity");
            return (Criteria) this;
        }

        public Criteria andPerceivedSeverityGreaterThanOrEqualTo(String value) {
            addCriterion("perceived_severity >=", value, "perceivedSeverity");
            return (Criteria) this;
        }

        public Criteria andPerceivedSeverityLessThan(String value) {
            addCriterion("perceived_severity <", value, "perceivedSeverity");
            return (Criteria) this;
        }

        public Criteria andPerceivedSeverityLessThanOrEqualTo(String value) {
            addCriterion("perceived_severity <=", value, "perceivedSeverity");
            return (Criteria) this;
        }

        public Criteria andPerceivedSeverityLike(String value) {
            addCriterion("perceived_severity like", value, "perceivedSeverity");
            return (Criteria) this;
        }

        public Criteria andPerceivedSeverityNotLike(String value) {
            addCriterion("perceived_severity not like", value, "perceivedSeverity");
            return (Criteria) this;
        }

        public Criteria andPerceivedSeverityIn(List<String> values) {
            addCriterion("perceived_severity in", values, "perceivedSeverity");
            return (Criteria) this;
        }

        public Criteria andPerceivedSeverityNotIn(List<String> values) {
            addCriterion("perceived_severity not in", values, "perceivedSeverity");
            return (Criteria) this;
        }

        public Criteria andPerceivedSeverityBetween(String value1, String value2) {
            addCriterion("perceived_severity between", value1, value2, "perceivedSeverity");
            return (Criteria) this;
        }

        public Criteria andPerceivedSeverityNotBetween(String value1, String value2) {
            addCriterion("perceived_severity not between", value1, value2, "perceivedSeverity");
            return (Criteria) this;
        }

        public Criteria andIsClearedIsNull() {
            addCriterion("is_cleared is null");
            return (Criteria) this;
        }

        public Criteria andIsClearedIsNotNull() {
            addCriterion("is_cleared is not null");
            return (Criteria) this;
        }

        public Criteria andIsClearedEqualTo(Byte value) {
            addCriterion("is_cleared =", value, "isCleared");
            return (Criteria) this;
        }

        public Criteria andIsClearedNotEqualTo(Byte value) {
            addCriterion("is_cleared <>", value, "isCleared");
            return (Criteria) this;
        }

        public Criteria andIsClearedGreaterThan(Byte value) {
            addCriterion("is_cleared >", value, "isCleared");
            return (Criteria) this;
        }

        public Criteria andIsClearedGreaterThanOrEqualTo(Byte value) {
            addCriterion("is_cleared >=", value, "isCleared");
            return (Criteria) this;
        }

        public Criteria andIsClearedLessThan(Byte value) {
            addCriterion("is_cleared <", value, "isCleared");
            return (Criteria) this;
        }

        public Criteria andIsClearedLessThanOrEqualTo(Byte value) {
            addCriterion("is_cleared <=", value, "isCleared");
            return (Criteria) this;
        }

        public Criteria andIsClearedIn(List<Byte> values) {
            addCriterion("is_cleared in", values, "isCleared");
            return (Criteria) this;
        }

        public Criteria andIsClearedNotIn(List<Byte> values) {
            addCriterion("is_cleared not in", values, "isCleared");
            return (Criteria) this;
        }

        public Criteria andIsClearedBetween(Byte value1, Byte value2) {
            addCriterion("is_cleared between", value1, value2, "isCleared");
            return (Criteria) this;
        }

        public Criteria andIsClearedNotBetween(Byte value1, Byte value2) {
            addCriterion("is_cleared not between", value1, value2, "isCleared");
            return (Criteria) this;
        }

        public Criteria andClearTimeIsNull() {
            addCriterion("clear_time is null");
            return (Criteria) this;
        }

        public Criteria andClearTimeIsNotNull() {
            addCriterion("clear_time is not null");
            return (Criteria) this;
        }

        public Criteria andClearTimeEqualTo(Date value) {
            addCriterion("clear_time =", value, "clearTime");
            return (Criteria) this;
        }

        public Criteria andClearTimeNotEqualTo(Date value) {
            addCriterion("clear_time <>", value, "clearTime");
            return (Criteria) this;
        }

        public Criteria andClearTimeGreaterThan(Date value) {
            addCriterion("clear_time >", value, "clearTime");
            return (Criteria) this;
        }

        public Criteria andClearTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("clear_time >=", value, "clearTime");
            return (Criteria) this;
        }

        public Criteria andClearTimeLessThan(Date value) {
            addCriterion("clear_time <", value, "clearTime");
            return (Criteria) this;
        }

        public Criteria andClearTimeLessThanOrEqualTo(Date value) {
            addCriterion("clear_time <=", value, "clearTime");
            return (Criteria) this;
        }

        public Criteria andClearTimeIn(List<Date> values) {
            addCriterion("clear_time in", values, "clearTime");
            return (Criteria) this;
        }

        public Criteria andClearTimeNotIn(List<Date> values) {
            addCriterion("clear_time not in", values, "clearTime");
            return (Criteria) this;
        }

        public Criteria andClearTimeBetween(Date value1, Date value2) {
            addCriterion("clear_time between", value1, value2, "clearTime");
            return (Criteria) this;
        }

        public Criteria andClearTimeNotBetween(Date value1, Date value2) {
            addCriterion("clear_time not between", value1, value2, "clearTime");
            return (Criteria) this;
        }

        public Criteria andNeNameIsNull() {
            addCriterion("ne_name is null");
            return (Criteria) this;
        }

        public Criteria andNeNameIsNotNull() {
            addCriterion("ne_name is not null");
            return (Criteria) this;
        }

        public Criteria andNeNameEqualTo(String value) {
            addCriterion("ne_name =", value, "neName");
            return (Criteria) this;
        }

        public Criteria andNeNameNotEqualTo(String value) {
            addCriterion("ne_name <>", value, "neName");
            return (Criteria) this;
        }

        public Criteria andNeNameGreaterThan(String value) {
            addCriterion("ne_name >", value, "neName");
            return (Criteria) this;
        }

        public Criteria andNeNameGreaterThanOrEqualTo(String value) {
            addCriterion("ne_name >=", value, "neName");
            return (Criteria) this;
        }

        public Criteria andNeNameLessThan(String value) {
            addCriterion("ne_name <", value, "neName");
            return (Criteria) this;
        }

        public Criteria andNeNameLessThanOrEqualTo(String value) {
            addCriterion("ne_name <=", value, "neName");
            return (Criteria) this;
        }

        public Criteria andNeNameLike(String value) {
            addCriterion("ne_name like", value, "neName");
            return (Criteria) this;
        }

        public Criteria andNeNameNotLike(String value) {
            addCriterion("ne_name not like", value, "neName");
            return (Criteria) this;
        }

        public Criteria andNeNameIn(List<String> values) {
            addCriterion("ne_name in", values, "neName");
            return (Criteria) this;
        }

        public Criteria andNeNameNotIn(List<String> values) {
            addCriterion("ne_name not in", values, "neName");
            return (Criteria) this;
        }

        public Criteria andNeNameBetween(String value1, String value2) {
            addCriterion("ne_name between", value1, value2, "neName");
            return (Criteria) this;
        }

        public Criteria andNeNameNotBetween(String value1, String value2) {
            addCriterion("ne_name not between", value1, value2, "neName");
            return (Criteria) this;
        }

        public Criteria andLocationInfoIsNull() {
            addCriterion("location_info is null");
            return (Criteria) this;
        }

        public Criteria andLocationInfoIsNotNull() {
            addCriterion("location_info is not null");
            return (Criteria) this;
        }

        public Criteria andLocationInfoEqualTo(String value) {
            addCriterion("location_info =", value, "locationInfo");
            return (Criteria) this;
        }

        public Criteria andLocationInfoNotEqualTo(String value) {
            addCriterion("location_info <>", value, "locationInfo");
            return (Criteria) this;
        }

        public Criteria andLocationInfoGreaterThan(String value) {
            addCriterion("location_info >", value, "locationInfo");
            return (Criteria) this;
        }

        public Criteria andLocationInfoGreaterThanOrEqualTo(String value) {
            addCriterion("location_info >=", value, "locationInfo");
            return (Criteria) this;
        }

        public Criteria andLocationInfoLessThan(String value) {
            addCriterion("location_info <", value, "locationInfo");
            return (Criteria) this;
        }

        public Criteria andLocationInfoLessThanOrEqualTo(String value) {
            addCriterion("location_info <=", value, "locationInfo");
            return (Criteria) this;
        }

        public Criteria andLocationInfoLike(String value) {
            addCriterion("location_info like", value, "locationInfo");
            return (Criteria) this;
        }

        public Criteria andLocationInfoNotLike(String value) {
            addCriterion("location_info not like", value, "locationInfo");
            return (Criteria) this;
        }

        public Criteria andLocationInfoIn(List<String> values) {
            addCriterion("location_info in", values, "locationInfo");
            return (Criteria) this;
        }

        public Criteria andLocationInfoNotIn(List<String> values) {
            addCriterion("location_info not in", values, "locationInfo");
            return (Criteria) this;
        }

        public Criteria andLocationInfoBetween(String value1, String value2) {
            addCriterion("location_info between", value1, value2, "locationInfo");
            return (Criteria) this;
        }

        public Criteria andLocationInfoNotBetween(String value1, String value2) {
            addCriterion("location_info not between", value1, value2, "locationInfo");
            return (Criteria) this;
        }

        public Criteria andNativeProbableCauseIsNull() {
            addCriterion("native_probable_cause is null");
            return (Criteria) this;
        }

        public Criteria andNativeProbableCauseIsNotNull() {
            addCriterion("native_probable_cause is not null");
            return (Criteria) this;
        }

        public Criteria andNativeProbableCauseEqualTo(String value) {
            addCriterion("native_probable_cause =", value, "nativeProbableCause");
            return (Criteria) this;
        }

        public Criteria andNativeProbableCauseNotEqualTo(String value) {
            addCriterion("native_probable_cause <>", value, "nativeProbableCause");
            return (Criteria) this;
        }

        public Criteria andNativeProbableCauseGreaterThan(String value) {
            addCriterion("native_probable_cause >", value, "nativeProbableCause");
            return (Criteria) this;
        }

        public Criteria andNativeProbableCauseGreaterThanOrEqualTo(String value) {
            addCriterion("native_probable_cause >=", value, "nativeProbableCause");
            return (Criteria) this;
        }

        public Criteria andNativeProbableCauseLessThan(String value) {
            addCriterion("native_probable_cause <", value, "nativeProbableCause");
            return (Criteria) this;
        }

        public Criteria andNativeProbableCauseLessThanOrEqualTo(String value) {
            addCriterion("native_probable_cause <=", value, "nativeProbableCause");
            return (Criteria) this;
        }

        public Criteria andNativeProbableCauseLike(String value) {
            addCriterion("native_probable_cause like", value, "nativeProbableCause");
            return (Criteria) this;
        }

        public Criteria andNativeProbableCauseNotLike(String value) {
            addCriterion("native_probable_cause not like", value, "nativeProbableCause");
            return (Criteria) this;
        }

        public Criteria andNativeProbableCauseIn(List<String> values) {
            addCriterion("native_probable_cause in", values, "nativeProbableCause");
            return (Criteria) this;
        }

        public Criteria andNativeProbableCauseNotIn(List<String> values) {
            addCriterion("native_probable_cause not in", values, "nativeProbableCause");
            return (Criteria) this;
        }

        public Criteria andNativeProbableCauseBetween(String value1, String value2) {
            addCriterion("native_probable_cause between", value1, value2, "nativeProbableCause");
            return (Criteria) this;
        }

        public Criteria andNativeProbableCauseNotBetween(String value1, String value2) {
            addCriterion("native_probable_cause not between", value1, value2, "nativeProbableCause");
            return (Criteria) this;
        }

        public Criteria andProbableCauseIsNull() {
            addCriterion("probable_cause is null");
            return (Criteria) this;
        }

        public Criteria andProbableCauseIsNotNull() {
            addCriterion("probable_cause is not null");
            return (Criteria) this;
        }

        public Criteria andProbableCauseEqualTo(String value) {
            addCriterion("probable_cause =", value, "probableCause");
            return (Criteria) this;
        }

        public Criteria andProbableCauseNotEqualTo(String value) {
            addCriterion("probable_cause <>", value, "probableCause");
            return (Criteria) this;
        }

        public Criteria andProbableCauseGreaterThan(String value) {
            addCriterion("probable_cause >", value, "probableCause");
            return (Criteria) this;
        }

        public Criteria andProbableCauseGreaterThanOrEqualTo(String value) {
            addCriterion("probable_cause >=", value, "probableCause");
            return (Criteria) this;
        }

        public Criteria andProbableCauseLessThan(String value) {
            addCriterion("probable_cause <", value, "probableCause");
            return (Criteria) this;
        }

        public Criteria andProbableCauseLessThanOrEqualTo(String value) {
            addCriterion("probable_cause <=", value, "probableCause");
            return (Criteria) this;
        }

        public Criteria andProbableCauseLike(String value) {
            addCriterion("probable_cause like", value, "probableCause");
            return (Criteria) this;
        }

        public Criteria andProbableCauseNotLike(String value) {
            addCriterion("probable_cause not like", value, "probableCause");
            return (Criteria) this;
        }

        public Criteria andProbableCauseIn(List<String> values) {
            addCriterion("probable_cause in", values, "probableCause");
            return (Criteria) this;
        }

        public Criteria andProbableCauseNotIn(List<String> values) {
            addCriterion("probable_cause not in", values, "probableCause");
            return (Criteria) this;
        }

        public Criteria andProbableCauseBetween(String value1, String value2) {
            addCriterion("probable_cause between", value1, value2, "probableCause");
            return (Criteria) this;
        }

        public Criteria andProbableCauseNotBetween(String value1, String value2) {
            addCriterion("probable_cause not between", value1, value2, "probableCause");
            return (Criteria) this;
        }

        public Criteria andRootCauseIdentifierIsNull() {
            addCriterion("root_cause_identifier is null");
            return (Criteria) this;
        }

        public Criteria andRootCauseIdentifierIsNotNull() {
            addCriterion("root_cause_identifier is not null");
            return (Criteria) this;
        }

        public Criteria andRootCauseIdentifierEqualTo(Byte value) {
            addCriterion("root_cause_identifier =", value, "rootCauseIdentifier");
            return (Criteria) this;
        }

        public Criteria andRootCauseIdentifierNotEqualTo(Byte value) {
            addCriterion("root_cause_identifier <>", value, "rootCauseIdentifier");
            return (Criteria) this;
        }

        public Criteria andRootCauseIdentifierGreaterThan(Byte value) {
            addCriterion("root_cause_identifier >", value, "rootCauseIdentifier");
            return (Criteria) this;
        }

        public Criteria andRootCauseIdentifierGreaterThanOrEqualTo(Byte value) {
            addCriterion("root_cause_identifier >=", value, "rootCauseIdentifier");
            return (Criteria) this;
        }

        public Criteria andRootCauseIdentifierLessThan(Byte value) {
            addCriterion("root_cause_identifier <", value, "rootCauseIdentifier");
            return (Criteria) this;
        }

        public Criteria andRootCauseIdentifierLessThanOrEqualTo(Byte value) {
            addCriterion("root_cause_identifier <=", value, "rootCauseIdentifier");
            return (Criteria) this;
        }

        public Criteria andRootCauseIdentifierIn(List<Byte> values) {
            addCriterion("root_cause_identifier in", values, "rootCauseIdentifier");
            return (Criteria) this;
        }

        public Criteria andRootCauseIdentifierNotIn(List<Byte> values) {
            addCriterion("root_cause_identifier not in", values, "rootCauseIdentifier");
            return (Criteria) this;
        }

        public Criteria andRootCauseIdentifierBetween(Byte value1, Byte value2) {
            addCriterion("root_cause_identifier between", value1, value2, "rootCauseIdentifier");
            return (Criteria) this;
        }

        public Criteria andRootCauseIdentifierNotBetween(Byte value1, Byte value2) {
            addCriterion("root_cause_identifier not between", value1, value2, "rootCauseIdentifier");
            return (Criteria) this;
        }

        public Criteria andEmsTimeIsNull() {
            addCriterion("ems_time is null");
            return (Criteria) this;
        }

        public Criteria andEmsTimeIsNotNull() {
            addCriterion("ems_time is not null");
            return (Criteria) this;
        }

        public Criteria andEmsTimeEqualTo(Date value) {
            addCriterion("ems_time =", value, "emsTime");
            return (Criteria) this;
        }

        public Criteria andEmsTimeNotEqualTo(Date value) {
            addCriterion("ems_time <>", value, "emsTime");
            return (Criteria) this;
        }

        public Criteria andEmsTimeGreaterThan(Date value) {
            addCriterion("ems_time >", value, "emsTime");
            return (Criteria) this;
        }

        public Criteria andEmsTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("ems_time >=", value, "emsTime");
            return (Criteria) this;
        }

        public Criteria andEmsTimeLessThan(Date value) {
            addCriterion("ems_time <", value, "emsTime");
            return (Criteria) this;
        }

        public Criteria andEmsTimeLessThanOrEqualTo(Date value) {
            addCriterion("ems_time <=", value, "emsTime");
            return (Criteria) this;
        }

        public Criteria andEmsTimeIn(List<Date> values) {
            addCriterion("ems_time in", values, "emsTime");
            return (Criteria) this;
        }

        public Criteria andEmsTimeNotIn(List<Date> values) {
            addCriterion("ems_time not in", values, "emsTime");
            return (Criteria) this;
        }

        public Criteria andEmsTimeBetween(Date value1, Date value2) {
            addCriterion("ems_time between", value1, value2, "emsTime");
            return (Criteria) this;
        }

        public Criteria andEmsTimeNotBetween(Date value1, Date value2) {
            addCriterion("ems_time not between", value1, value2, "emsTime");
            return (Criteria) this;
        }

        public Criteria andAlarmSerialNumberIsNull() {
            addCriterion("alarm_serial_number is null");
            return (Criteria) this;
        }

        public Criteria andAlarmSerialNumberIsNotNull() {
            addCriterion("alarm_serial_number is not null");
            return (Criteria) this;
        }

        public Criteria andAlarmSerialNumberEqualTo(String value) {
            addCriterion("alarm_serial_number =", value, "alarmSerialNumber");
            return (Criteria) this;
        }

        public Criteria andAlarmSerialNumberNotEqualTo(String value) {
            addCriterion("alarm_serial_number <>", value, "alarmSerialNumber");
            return (Criteria) this;
        }

        public Criteria andAlarmSerialNumberGreaterThan(String value) {
            addCriterion("alarm_serial_number >", value, "alarmSerialNumber");
            return (Criteria) this;
        }

        public Criteria andAlarmSerialNumberGreaterThanOrEqualTo(String value) {
            addCriterion("alarm_serial_number >=", value, "alarmSerialNumber");
            return (Criteria) this;
        }

        public Criteria andAlarmSerialNumberLessThan(String value) {
            addCriterion("alarm_serial_number <", value, "alarmSerialNumber");
            return (Criteria) this;
        }

        public Criteria andAlarmSerialNumberLessThanOrEqualTo(String value) {
            addCriterion("alarm_serial_number <=", value, "alarmSerialNumber");
            return (Criteria) this;
        }

        public Criteria andAlarmSerialNumberLike(String value) {
            addCriterion("alarm_serial_number like", value, "alarmSerialNumber");
            return (Criteria) this;
        }

        public Criteria andAlarmSerialNumberNotLike(String value) {
            addCriterion("alarm_serial_number not like", value, "alarmSerialNumber");
            return (Criteria) this;
        }

        public Criteria andAlarmSerialNumberIn(List<String> values) {
            addCriterion("alarm_serial_number in", values, "alarmSerialNumber");
            return (Criteria) this;
        }

        public Criteria andAlarmSerialNumberNotIn(List<String> values) {
            addCriterion("alarm_serial_number not in", values, "alarmSerialNumber");
            return (Criteria) this;
        }

        public Criteria andAlarmSerialNumberBetween(String value1, String value2) {
            addCriterion("alarm_serial_number between", value1, value2, "alarmSerialNumber");
            return (Criteria) this;
        }

        public Criteria andAlarmSerialNumberNotBetween(String value1, String value2) {
            addCriterion("alarm_serial_number not between", value1, value2, "alarmSerialNumber");
            return (Criteria) this;
        }

        public Criteria andReasonIdIsNull() {
            addCriterion("reason_id is null");
            return (Criteria) this;
        }

        public Criteria andReasonIdIsNotNull() {
            addCriterion("reason_id is not null");
            return (Criteria) this;
        }

        public Criteria andReasonIdEqualTo(Long value) {
            addCriterion("reason_id =", value, "reasonId");
            return (Criteria) this;
        }

        public Criteria andReasonIdNotEqualTo(Long value) {
            addCriterion("reason_id <>", value, "reasonId");
            return (Criteria) this;
        }

        public Criteria andReasonIdGreaterThan(Long value) {
            addCriterion("reason_id >", value, "reasonId");
            return (Criteria) this;
        }

        public Criteria andReasonIdGreaterThanOrEqualTo(Long value) {
            addCriterion("reason_id >=", value, "reasonId");
            return (Criteria) this;
        }

        public Criteria andReasonIdLessThan(Long value) {
            addCriterion("reason_id <", value, "reasonId");
            return (Criteria) this;
        }

        public Criteria andReasonIdLessThanOrEqualTo(Long value) {
            addCriterion("reason_id <=", value, "reasonId");
            return (Criteria) this;
        }

        public Criteria andReasonIdIn(List<Long> values) {
            addCriterion("reason_id in", values, "reasonId");
            return (Criteria) this;
        }

        public Criteria andReasonIdNotIn(List<Long> values) {
            addCriterion("reason_id not in", values, "reasonId");
            return (Criteria) this;
        }

        public Criteria andReasonIdBetween(Long value1, Long value2) {
            addCriterion("reason_id between", value1, value2, "reasonId");
            return (Criteria) this;
        }

        public Criteria andReasonIdNotBetween(Long value1, Long value2) {
            addCriterion("reason_id not between", value1, value2, "reasonId");
            return (Criteria) this;
        }

        public Criteria andAlarmTextIsNull() {
            addCriterion("alarm_text is null");
            return (Criteria) this;
        }

        public Criteria andAlarmTextIsNotNull() {
            addCriterion("alarm_text is not null");
            return (Criteria) this;
        }

        public Criteria andAlarmTextEqualTo(String value) {
            addCriterion("alarm_text =", value, "alarmText");
            return (Criteria) this;
        }

        public Criteria andAlarmTextNotEqualTo(String value) {
            addCriterion("alarm_text <>", value, "alarmText");
            return (Criteria) this;
        }

        public Criteria andAlarmTextGreaterThan(String value) {
            addCriterion("alarm_text >", value, "alarmText");
            return (Criteria) this;
        }

        public Criteria andAlarmTextGreaterThanOrEqualTo(String value) {
            addCriterion("alarm_text >=", value, "alarmText");
            return (Criteria) this;
        }

        public Criteria andAlarmTextLessThan(String value) {
            addCriterion("alarm_text <", value, "alarmText");
            return (Criteria) this;
        }

        public Criteria andAlarmTextLessThanOrEqualTo(String value) {
            addCriterion("alarm_text <=", value, "alarmText");
            return (Criteria) this;
        }

        public Criteria andAlarmTextLike(String value) {
            addCriterion("alarm_text like", value, "alarmText");
            return (Criteria) this;
        }

        public Criteria andAlarmTextNotLike(String value) {
            addCriterion("alarm_text not like", value, "alarmText");
            return (Criteria) this;
        }

        public Criteria andAlarmTextIn(List<String> values) {
            addCriterion("alarm_text in", values, "alarmText");
            return (Criteria) this;
        }

        public Criteria andAlarmTextNotIn(List<String> values) {
            addCriterion("alarm_text not in", values, "alarmText");
            return (Criteria) this;
        }

        public Criteria andAlarmTextBetween(String value1, String value2) {
            addCriterion("alarm_text between", value1, value2, "alarmText");
            return (Criteria) this;
        }

        public Criteria andAlarmTextNotBetween(String value1, String value2) {
            addCriterion("alarm_text not between", value1, value2, "alarmText");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeQualifierIsNull() {
            addCriterion("alarm_type_qualifier is null");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeQualifierIsNotNull() {
            addCriterion("alarm_type_qualifier is not null");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeQualifierEqualTo(String value) {
            addCriterion("alarm_type_qualifier =", value, "alarmTypeQualifier");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeQualifierNotEqualTo(String value) {
            addCriterion("alarm_type_qualifier <>", value, "alarmTypeQualifier");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeQualifierGreaterThan(String value) {
            addCriterion("alarm_type_qualifier >", value, "alarmTypeQualifier");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeQualifierGreaterThanOrEqualTo(String value) {
            addCriterion("alarm_type_qualifier >=", value, "alarmTypeQualifier");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeQualifierLessThan(String value) {
            addCriterion("alarm_type_qualifier <", value, "alarmTypeQualifier");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeQualifierLessThanOrEqualTo(String value) {
            addCriterion("alarm_type_qualifier <=", value, "alarmTypeQualifier");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeQualifierLike(String value) {
            addCriterion("alarm_type_qualifier like", value, "alarmTypeQualifier");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeQualifierNotLike(String value) {
            addCriterion("alarm_type_qualifier not like", value, "alarmTypeQualifier");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeQualifierIn(List<String> values) {
            addCriterion("alarm_type_qualifier in", values, "alarmTypeQualifier");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeQualifierNotIn(List<String> values) {
            addCriterion("alarm_type_qualifier not in", values, "alarmTypeQualifier");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeQualifierBetween(String value1, String value2) {
            addCriterion("alarm_type_qualifier between", value1, value2, "alarmTypeQualifier");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeQualifierNotBetween(String value1, String value2) {
            addCriterion("alarm_type_qualifier not between", value1, value2, "alarmTypeQualifier");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeIdIsNull() {
            addCriterion("alarm_type_id is null");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeIdIsNotNull() {
            addCriterion("alarm_type_id is not null");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeIdEqualTo(String value) {
            addCriterion("alarm_type_id =", value, "alarmTypeId");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeIdNotEqualTo(String value) {
            addCriterion("alarm_type_id <>", value, "alarmTypeId");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeIdGreaterThan(String value) {
            addCriterion("alarm_type_id >", value, "alarmTypeId");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeIdGreaterThanOrEqualTo(String value) {
            addCriterion("alarm_type_id >=", value, "alarmTypeId");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeIdLessThan(String value) {
            addCriterion("alarm_type_id <", value, "alarmTypeId");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeIdLessThanOrEqualTo(String value) {
            addCriterion("alarm_type_id <=", value, "alarmTypeId");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeIdLike(String value) {
            addCriterion("alarm_type_id like", value, "alarmTypeId");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeIdNotLike(String value) {
            addCriterion("alarm_type_id not like", value, "alarmTypeId");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeIdIn(List<String> values) {
            addCriterion("alarm_type_id in", values, "alarmTypeId");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeIdNotIn(List<String> values) {
            addCriterion("alarm_type_id not in", values, "alarmTypeId");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeIdBetween(String value1, String value2) {
            addCriterion("alarm_type_id between", value1, value2, "alarmTypeId");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeIdNotBetween(String value1, String value2) {
            addCriterion("alarm_type_id not between", value1, value2, "alarmTypeId");
            return (Criteria) this;
        }

        public Criteria andLayerIsNull() {
            addCriterion("layer is null");
            return (Criteria) this;
        }

        public Criteria andLayerIsNotNull() {
            addCriterion("layer is not null");
            return (Criteria) this;
        }

        public Criteria andLayerEqualTo(String value) {
            addCriterion("layer =", value, "layer");
            return (Criteria) this;
        }

        public Criteria andLayerNotEqualTo(String value) {
            addCriterion("layer <>", value, "layer");
            return (Criteria) this;
        }

        public Criteria andLayerGreaterThan(String value) {
            addCriterion("layer >", value, "layer");
            return (Criteria) this;
        }

        public Criteria andLayerGreaterThanOrEqualTo(String value) {
            addCriterion("layer >=", value, "layer");
            return (Criteria) this;
        }

        public Criteria andLayerLessThan(String value) {
            addCriterion("layer <", value, "layer");
            return (Criteria) this;
        }

        public Criteria andLayerLessThanOrEqualTo(String value) {
            addCriterion("layer <=", value, "layer");
            return (Criteria) this;
        }

        public Criteria andLayerLike(String value) {
            addCriterion("layer like", value, "layer");
            return (Criteria) this;
        }

        public Criteria andLayerNotLike(String value) {
            addCriterion("layer not like", value, "layer");
            return (Criteria) this;
        }

        public Criteria andLayerIn(List<String> values) {
            addCriterion("layer in", values, "layer");
            return (Criteria) this;
        }

        public Criteria andLayerNotIn(List<String> values) {
            addCriterion("layer not in", values, "layer");
            return (Criteria) this;
        }

        public Criteria andLayerBetween(String value1, String value2) {
            addCriterion("layer between", value1, value2, "layer");
            return (Criteria) this;
        }

        public Criteria andLayerNotBetween(String value1, String value2) {
            addCriterion("layer not between", value1, value2, "layer");
            return (Criteria) this;
        }

        public Criteria andMdNameIsNull() {
            addCriterion("md_name is null");
            return (Criteria) this;
        }

        public Criteria andMdNameIsNotNull() {
            addCriterion("md_name is not null");
            return (Criteria) this;
        }

        public Criteria andMdNameEqualTo(String value) {
            addCriterion("md_name =", value, "mdName");
            return (Criteria) this;
        }

        public Criteria andMdNameNotEqualTo(String value) {
            addCriterion("md_name <>", value, "mdName");
            return (Criteria) this;
        }

        public Criteria andMdNameGreaterThan(String value) {
            addCriterion("md_name >", value, "mdName");
            return (Criteria) this;
        }

        public Criteria andMdNameGreaterThanOrEqualTo(String value) {
            addCriterion("md_name >=", value, "mdName");
            return (Criteria) this;
        }

        public Criteria andMdNameLessThan(String value) {
            addCriterion("md_name <", value, "mdName");
            return (Criteria) this;
        }

        public Criteria andMdNameLessThanOrEqualTo(String value) {
            addCriterion("md_name <=", value, "mdName");
            return (Criteria) this;
        }

        public Criteria andMdNameLike(String value) {
            addCriterion("md_name like", value, "mdName");
            return (Criteria) this;
        }

        public Criteria andMdNameNotLike(String value) {
            addCriterion("md_name not like", value, "mdName");
            return (Criteria) this;
        }

        public Criteria andMdNameIn(List<String> values) {
            addCriterion("md_name in", values, "mdName");
            return (Criteria) this;
        }

        public Criteria andMdNameNotIn(List<String> values) {
            addCriterion("md_name not in", values, "mdName");
            return (Criteria) this;
        }

        public Criteria andMdNameBetween(String value1, String value2) {
            addCriterion("md_name between", value1, value2, "mdName");
            return (Criteria) this;
        }

        public Criteria andMdNameNotBetween(String value1, String value2) {
            addCriterion("md_name not between", value1, value2, "mdName");
            return (Criteria) this;
        }

        public Criteria andProductTypeIsNull() {
            addCriterion("product_type is null");
            return (Criteria) this;
        }

        public Criteria andProductTypeIsNotNull() {
            addCriterion("product_type is not null");
            return (Criteria) this;
        }

        public Criteria andProductTypeEqualTo(String value) {
            addCriterion("product_type =", value, "productType");
            return (Criteria) this;
        }

        public Criteria andProductTypeNotEqualTo(String value) {
            addCriterion("product_type <>", value, "productType");
            return (Criteria) this;
        }

        public Criteria andProductTypeGreaterThan(String value) {
            addCriterion("product_type >", value, "productType");
            return (Criteria) this;
        }

        public Criteria andProductTypeGreaterThanOrEqualTo(String value) {
            addCriterion("product_type >=", value, "productType");
            return (Criteria) this;
        }

        public Criteria andProductTypeLessThan(String value) {
            addCriterion("product_type <", value, "productType");
            return (Criteria) this;
        }

        public Criteria andProductTypeLessThanOrEqualTo(String value) {
            addCriterion("product_type <=", value, "productType");
            return (Criteria) this;
        }

        public Criteria andProductTypeLike(String value) {
            addCriterion("product_type like", value, "productType");
            return (Criteria) this;
        }

        public Criteria andProductTypeNotLike(String value) {
            addCriterion("product_type not like", value, "productType");
            return (Criteria) this;
        }

        public Criteria andProductTypeIn(List<String> values) {
            addCriterion("product_type in", values, "productType");
            return (Criteria) this;
        }

        public Criteria andProductTypeNotIn(List<String> values) {
            addCriterion("product_type not in", values, "productType");
            return (Criteria) this;
        }

        public Criteria andProductTypeBetween(String value1, String value2) {
            addCriterion("product_type between", value1, value2, "productType");
            return (Criteria) this;
        }

        public Criteria andProductTypeNotBetween(String value1, String value2) {
            addCriterion("product_type not between", value1, value2, "productType");
            return (Criteria) this;
        }

        public Criteria andTplTypeIsNull() {
            addCriterion("tpl_type is null");
            return (Criteria) this;
        }

        public Criteria andTplTypeIsNotNull() {
            addCriterion("tpl_type is not null");
            return (Criteria) this;
        }

        public Criteria andTplTypeEqualTo(Byte value) {
            addCriterion("tpl_type =", value, "tplType");
            return (Criteria) this;
        }

        public Criteria andTplTypeNotEqualTo(Byte value) {
            addCriterion("tpl_type <>", value, "tplType");
            return (Criteria) this;
        }

        public Criteria andTplTypeGreaterThan(Byte value) {
            addCriterion("tpl_type >", value, "tplType");
            return (Criteria) this;
        }

        public Criteria andTplTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("tpl_type >=", value, "tplType");
            return (Criteria) this;
        }

        public Criteria andTplTypeLessThan(Byte value) {
            addCriterion("tpl_type <", value, "tplType");
            return (Criteria) this;
        }

        public Criteria andTplTypeLessThanOrEqualTo(Byte value) {
            addCriterion("tpl_type <=", value, "tplType");
            return (Criteria) this;
        }

        public Criteria andTplTypeIn(List<Byte> values) {
            addCriterion("tpl_type in", values, "tplType");
            return (Criteria) this;
        }

        public Criteria andTplTypeNotIn(List<Byte> values) {
            addCriterion("tpl_type not in", values, "tplType");
            return (Criteria) this;
        }

        public Criteria andTplTypeBetween(Byte value1, Byte value2) {
            addCriterion("tpl_type between", value1, value2, "tplType");
            return (Criteria) this;
        }

        public Criteria andTplTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("tpl_type not between", value1, value2, "tplType");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("updateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("updateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("updateTime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("updateTime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("updateTime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updateTime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("updateTime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("updateTime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("updateTime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("updateTime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("updateTime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("updateTime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}